li = [32,94,44,128,1286,71,6]

from functools import cmp_to_key


def xy_cmp(x,y):
    if x+y < y+x:
        return 1
    if x+y > y+x:
        return -1
    else:
        return 0

def str_join(li):
    li = list(map(str,li))
    li.sort(key=cmp_to_key(xy_cmp))
    return "".join(li)

print(str_join(li))